<?php
namespace app\admin\model;

use think\Model;

class MarketSmCopywritingTasks extends BaseModel
{
    public function cryptoNews(){
        return $this->hasOne(CryptoNews::class, 'id', 'crypto_news_id')->bind(['crypto_news_title' => 'title']);
    }

    public function smCopywriting(){
        return $this->hasMany(MarketSmCopywriting::class, 'sm_generate_opywriting_tasks_id', 'id')->with(['account','get_creator_name']);
    }
}

?>
